<!--
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2024-04-23 11:44:05
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-05-10 15:55:57
 * @FilePath: \cxl-driving-training\src\views\mini\Index.vue
-->
<template>
    <div class="page-box">
        <UploadFile
            dirType="wxmini"
            fileType="image"
            style="width: 100px; height: 100px"
            sizeRatio="[16, 9]"
            :public="true"
            @change="
                (obj: any) => {
                    console.log('obj', obj)
                    url = obj.url
                }
            "
        ></UploadFile>
        <div class="" style="margin: 16px 0 0 0">上传地址：{{ url }}</div>
    </div>
</template>

<script setup lang="ts">
import UploadFile from '@/components/form/upload.vue'
import { ref } from 'vue'
const url = ref('')
</script>
